package com.janke.softballnexus.shared;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.RequestFactory;
import com.google.web.bindery.requestfactory.shared.Service;
import com.janke.softballnexus.domain.Division;

public interface SoftballRequestFactory extends RequestFactory {

	@Service(Division.class)
	interface DivisionRequest extends RequestContext {

		Request<Void> deleteAllDivions();

		Request<List<DivisionProxy>> findAllDivions();

		Request<DivisionProxy> findDivision(Long id);

		InstanceRequest<DivisionProxy, Void> persist();
	}

	DivisionRequest divisionRequest();

}
